import layout from 'components/blankLayout/blankLayout.vue'
const route = [
    {
        path: '/map',
        component: layout,
        name: 'map',
        meta: {
            title: 'map'
        },
        children: [
            {
                path: 'mapA',
                component: () =>
                    import( /* webpackChunkName: "group-foo" */ './mapA'),
                name: 'mapA',
                meta: {
                    title: 'mapA'
                },
            },
            {
                path: 'mapB',
                component: () =>
                    import( /* webpackChunkName: "group-foo" */ './mapB'),
                name: 'mapB',
                meta: {
                    title: 'mapB'
                },
            },
            {
                path: 'mapC',
                component: layout,
                name: 'mapC',
                meta: {
                    title: 'mapC'
                },
                children: [
                    {
                        path: '/map/mapC/map-01',
                        component: () =>
                            import( /* webpackChunkName: "group-foo" */ './mapC/components/map-01.vue'),
                        name: 'map-01',
                        meta: {
                            title: 'map-01'
                        },
                    },
                    {
                        path: '/map/mapC/map-02',
                        component: () =>
                            import( /* webpackChunkName: "group-foo" */ './mapC/components/map-02.vue'),
                        name: 'map-02',
                        meta: {
                            title: 'map-02'
                        },
                    },
                    {
                        path: '/map/mapC/map-03',
                        component: () =>
                            import( /* webpackChunkName: "group-foo" */ './mapC/components/map-03.vue'),
                        name: 'map-03',
                        meta: {
                            title: 'map-03'
                        },
                    },
                    {
                        path: '/map/mapC/map-04',
                        component: () =>
                            import( /* webpackChunkName: "group-foo" */ './mapC/components/map-04.vue'),
                        name: 'map-04',
                        meta: {
                            title: 'map-04'
                        },
                    },
                    {
                        path: '/map/mapC/map-05',
                        component: () =>
                            import( /* webpackChunkName: "group-foo" */ './mapC/components/map-05.vue'),
                        name: 'map-05',
                        meta: {
                            title: 'map-05'
                        },
                    },
                ]
            },
        ]
    }
];

route.forEach(item => {
    item.children.forEach(it => {
        it.path = `${item.path}/${it.path}`;
    });
});
export default route;